/* 
 * File:   stack.h
 * Author: fiary
 *
 * Created on May 22, 2009, 1:08 PM
 */

#ifndef _STACK_H
#define	_STACK_H
#define StackSize 14
#define SYMBOLSIZE 2
#define MAX_IDEN_LEN 10
typedef struct SqStackint
{
	int top;
	int data[StackSize];
}SqStackint;
typedef struct character
{
    char symbol;
    char value[MAX_IDEN_LEN];
}character;
typedef struct SqStackchar
{
	int top;
	character data[StackSize];
}SqStackchar;

SqStackchar * Initstackchar();
int Pushchar(SqStackchar *sq,character x);
character Popchar(SqStackchar * sq);
character gettopchar(SqStackchar * sq);

SqStackint * Initstackint();
int Push(SqStackint *sq,int x);
int Popint(SqStackint * sq);
int gettopint(SqStackint * sq);
#endif	/* _STACK_H */

